dofile(getinstalldir().."scripts/FileAccess.lua") 
dofile(getinstalldir().."scripts/FindItems.lua") 

_printkey = "F10"

local function target()
UO.TargCurs = true
while UO.TargCurs == true do
      wait (50)
      end
return UO.LTargetID
end

printlist = function()
container = target()
t = ScanItems(true,{ContID=container}) 
print("ID trovati: " .. #t) -- number of fish found
for i=1,#t do
  print(t[i].ID .. " ___ " .. UO.Property(t[i].ID)) 
 -- id of items found if any
end 
end

repeat 
if getkey(_printkey) then
  printlist()
end
until false == true